home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / modem / hqfax41.zip / EP2GRAFX.BAT < prev    next >
DOS Batch File  |  1995-08-27  |  5KB  |  106 lines

  1. REM *********************************************************************/
  2. REM                                                                     */
  3. REM   SYSTEM       : HQ-FAX, Uitilities                                 */
  4. REM   COPYRIGHT    : (c) 1995 HTF CONSULTING                            */
  5. REM                                                                     */
  6. REM *********************************************************************/
  7. REM                                                                     */
  8. REM   BAT file name: EP2GRAFX.bat                                       */
  9. REM   DESCRIPTION  : This is the work-horse batch file which drives the */
  10. REM                  conversion and view or send process for the Grp 3  */
  11. REM                  FAX formats                                        */
  12. REM *********************************************************************/
  13. REM
  14. Rem - Documentname Fontname (Options )
  15. Echo off
  16. CLS
  17. Echo *************************************************************************
  18. Echo *****                     HTF CONSULTING                            *****
  19. Echo ***            EPSON to Graphics Conversion Procedure                 ***
  20. Echo **               Copyright (c) 1995  HTF Consulting                    **
  21. Echo *                                                                       *
  22. Echo * Convert EPSON file: '%1.ECL' to FAX file '%1.APF'
  23. REM Echo *                                                                       *
  24. if not "%3" == "" Echo * Special options chosen are: "%3 %4 %5 %6 %7 %8 %9"
  25. if "%3" == "" Echo * No Special options chosen:
  26. Echo *                                                                       *
  27. Echo * Available special options are:                                        *
  28. Echo *  /CDR     Convert Double-Print to REVERSE-VIDEO                       *
  29. Echo *  /CONT    Make 1 contiguous FAX file                                  *
  30. Echo *  /FHxx    Specify a Fax header format:                                *
  31. Echo *           xx = {00, AD, BF, C1, C2, CA, CP, DC, FR, PC, QL, TB, TF, TH}               *
  32. Echo *  /FONT    Specify a default mono-spaced font other than COORIER       *
  33. Echo *  /FORM    Specify a Pre-printed form as a background of every page    *
  34. Echo *  /LOGO    Apply the image 'LOGO.PCX' to the top center of every page  *
  35. Echo *  /MF      Produced multiple files (one per page)                      *
  36. Echo *  /PFxx    Override the default page format(NA) : xx = {A3, A4, B4, NA}*
  37. Echo *  /PPxx.yy Specify start(xx), & end(yy) page numbers (default = all )  *
  38. Echo *  /SEND    Specify Send parameters; Ex: /SEND 999-8888 /TM09:00p       *
  39. Echo *           (Send parameters must be last parameters on command line)   *
  40. Echo *  /STD     Produce a standard resolution file (else FINE)              *
  41. Echo *  /VIEW    View the produced image(s)                                  *
  42. Echo *  /RVx     Specify Reverse-Video trigger character: x = {*, ~, \, ^ }  *
  43. Echo *************************************************************************
  44. Pause
  45. if not exist %1.ECL goto Abend
  46. if not exist %2.FNT goto Abend
  47.  
  48. CLS
  49. Echo **************************************************************************
  50. Echo ***  Converting EPSON file %1.ECL to graphics images
  51. Echo ***  Approximate time required will be 1 minutes per full page          **
  52. Echo ***  ( When run on a 16 Mhz AT 386/SX )                                 **
  53. Echo ***                                                                     **
  54. Echo ***  Approximate disk space required will be:                           **
  55. Echo ***      .05 Megabytes (50K) per page                                   **
  56. Echo ***                                                                     **
  57. Echo **************************************************************************
  58. Echo Working .....
  59.  
  60. ECL2FAX3.exe %1.ECL %2 * %3 %4 %5 %6 %7 %8 %9
  61. if errorlevel 2 goto Abend
  62.  
  63. :Display
  64. if %4 == /VIEW  Call viewfax3.bat %1 %3
  65. if %5 == /VIEW  Call viewfax3.bat %1 %3
  66. if %6 == /VIEW  Call viewfax3.bat %1 %3
  67. if %7 == /VIEW  Call viewfax3.bat %1 %3
  68. if %8 == /VIEW  Call viewfax3.bat %1 %3
  69. if %9 == /VIEW  Call viewfax3.bat %1 %3
  70.  
  71. :Dial
  72. REM - Call the Faxsend.bat file to issue a DOS command line send
  73. if %4 == /SEND Faxsend.bat %1 %3 %5 %6 %7 %8 %9
  74. if %5 == /SEND Faxsend.bat %1 %3 %6 %7 %8 %9
  75. if %6 == /SEND Faxsend.bat %1 %3 %7 %8 %9
  76. if %7 == /SEND Faxsend.bat %1 %3 %8 %9
  77. if %8 == /SEND Faxsend.bat %1 %3 %9
  78.  
  79. :Abend
  80. if not errorlevel 2 CLS
  81. REM Type Bell.txt
  82. Echo **************************************************************************
  83. Echo ***                                                                      *
  84. Echo ***  ep2grafx.bat: Abnormal end of job:                                  *
  85. Echo ***  Source document %1.ECL,  Font table %2.FNT
  86. Echo ***                                                                      *
  87. Echo **************************************************************************
  88. Echo *
  89. if not exist %1.ECL Echo ***    EPSON file %1.ECL not found
  90. if exist %3.FNT goto quit
  91. Echo ***    %2.FNT - File not found
  92. Echo ***
  93. Echo ***  Chosen font not available - Available Fonts are listed below:
  94. dir *.fnt /w
  95. Echo ***
  96. Echo ***  The 'A' suffixes are for Alternate Fonts (Elite pitch)
  97. Pause
  98.  
  99. :quit
  100. Echo on
  101. Rem - chdir c:\
  102.  
  103. :quit
  104. Echo on
  105. Rem - chdir c:\
  106.